<?php
/**
 * <b>RUBIK IT Solution & Development ltd.</b>
 *
 * PROJECT		: Auction
 * @version 	: 1.1
 * COPYRIGHT    : 2010
 * ------------------------------------------------------
 *
 * Created on	:  Sep 13, 2010
 *
 */

// no direct access
defined ( '_FW_EXEC' ) or die ( 'Restricted access' );
RClassesImporter::cls('controllers.AbstractBackEndController');

/**
 * The controller for State application
 *
 */
class EventFrontController extends AbstractBackEndController {

	var $_model;

	function __construct() {
		parent::__construct();
		SysApplication::importModelCls('EventModel');
		$this->_model = new EventModel();
	}

	function display() {
		$root = SYS_ROOT_URL;
		$model = $this->_model;
		
	}
	function details() {
		$root = SYS_ROOT_URL;
		$model = $this->_model;
		$id = SysRequest::getVar('task');
		$result = $model->loadEventDetail($id);
		$image = $result->image;
		$title = $result->title;
		$content = $result->content;
		$service_id = $result->service_id;

		eval('echo "'.SysApplication::loadTemplate('front/serviceDetails').'";');
	}
	

}
